<%
metamodel http://www.sgt.org/testdef/1.0.0/testdef.ecore
import org.sgt.testdef.doc.generator.testElementDocTemplate
%>

<%script type="testdef.TestPlan" name="testdef2txt-plan" file="<%name%>.html"%>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<title><%name%></title>
<style>
 /* Style Definitions */
body
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:12.0pt;
	margin-left:0cm;
	text-align:justify;
	font-size:10.0pt;
	font-family:Verdana;}
table
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:12.0pt;
	margin-left:0cm;
	text-align:justify;
	font-size:10.0pt;
	font-family:Verdana;
	}
	
table.bordered {
	border-width: 1px 1px 1px 1px;
	border-spacing: 2px;
	border-style: outset outset outset outset;
	border-color: gray gray gray gray;
	border-collapse: collapse;
	background-color: white;
	}

table.bordered th {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: rgb(255, 255, 240);
	-moz-border-radius: 0px 0px 0px 0px;
	}
	
table.bordered td {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: rgb(255, 255, 240);
	-moz-border-radius: 0px 0px 0px 0px;
	}
	
table.bordered-green {
	border-width: 1px 1px 1px 1px;
	border-spacing: 2px;
	border-style: outset outset outset outset;
	border-color: gray gray gray gray;
	border-collapse: collapse;
	background-color: white;
	}

table.bordered-green th {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: rgb(255, 240, 255);
	-moz-border-radius: 0px 0px 0px 0px;
	}
	
table.bordered-green td {
	border-width: 1px 1px 1px 1px;
	padding: 1px 1px 1px 1px;
	border-style: inset inset inset inset;
	border-color: gray gray gray gray;
	background-color: rgb(255, 240, 255);
	-moz-border-radius: 0px 0px 0px 0px;
	}

h1
	{font-size:16.0pt;
	font-family:Verdana;}
h2
	{font-size:14.0pt;	
	font-family:Verdana;}
h3
	{font-size:12.0pt;
	font-family:Verdana;}
	
em
	{font-size:10.0pt;
	font-family:Verdana-Bold;}

</style>

</head>

<body>
<p width ="200" style="font-size:16.0pt;text-align:center;color:#FFFFFF;background-color:#0000AA">Client : <strong><%customer%></strong></p>
<p width ="200" style="font-size:16.0pt;text-align:center;color:#FFFFFF;background-color:#00AA00">Fournisseur : <strong></strong></p>
<p width ="200" style="font-size:16.0pt;text-align:center;color:#FFFFFF;background-color:#0000AA">Projet : <strong><%project%> - <%projectVersion%></strong></p>
<p width ="200" style="font-size:16.0pt;text-align:center;color:#FFFFFF;background-color:#0000FF">Test Plan Version : <strong><%testPlanVersion%></strong></p>
<h1 style="text-align:center;color:#FFFFFF;background-color:#9999FF">SOMMAIRE</h1>

<ol type="I"><%for (eAllContents().filter("TestSuite")){%>
	<li><h2><a name="#<%ID%>_SUM"></a><a href="#<%ID%>"><%name%></a></h2></li>
	<ol type="1"><%for (eAllContents().filter("TestCase")){%>
		<li><h3><a name="#<%ID%>_SUM"></a><a href="#<%ID%>"><%name%></a></h3></li>
		<ol type="a"><%for (eAllContents().filter("Step")){%>
			<li><h4><a name="#<%ID%>_SUM"></a><a href="#<%ID%>"><%name%></a></h4></li>
		<%}%></ol>
	<%}%></ol>
<%}%></ol>

<h1 style="text-align:center;color:#FFFFFF;background-color:#9999FF">DESCRIPTION :</h1>
<ol type="I"><%for (eAllContents().filter("TestSuite")){%>
	<li>
		<h2><a href="#<%ID%>_SUM"><%name%></a><a name="#<%ID%>"></a></h2>
		<%self.general_TestElement_Plan%>
	</li>
	<ol type="1"><%for (eAllContents().filter("TestCase")){%>
		<li>
			<h3><a href="#<%ID%>_SUM"><%name%></a><a name="#<%ID%>"></a></h3>
			<%self.general_TestElement_Plan%>
		</li>
		<ol type="a"><%for (eAllContents().filter("Step")){%>
			<li>
				<h4><a href="#<%ID%>_SUM"><%name%></a><a name="#<%ID%>"></a></h4>
				<%self.general_TestElement_Plan%>
			</li>
		<%}%></ol>
	<%}%></ol>
<%}%></ol>

</body>

</html>
